/**
 * @author tian qingsen
 */
$(function() {
	
});

function editLink(id) {
	window.location.href = window.ctx + '/admin/content/links_edit.htm?link.linkId=' + id;
}

function deleteLink(id) {
	if (!confirm('是否确认删除？')) {
		return;
	}
	var url = window.ctx + '/admin/content/links_dodelete.htm?link.linkId=' + id;
	$.getJSON(url, function(feedback) {
		alert(feedback.message);
		if (feedback.successful) {
			window.location.href = window.ctx + '/admin/content/links_manage.htm';
		}
	});
}